<?php
namespace RH\Newspage\Domain\Model;

/***************************************************************
 *  Copyright notice
 *
 *  (c) 2013 
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
 *  free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  The GNU General Public License can be found at
 *  http://www.gnu.org/copyleft/gpl.html.
 *
 *  This script is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/

/**
 *
 *
 * @package newspage
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
 *
 */
class Page extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {

   /**
    * uid
    * @var int
    * @validate NotEmpty
    */
    protected $uid;
 
   /**
    * pid
    * @var int
    * @validate NotEmpty
    */
    protected $pid;
 
   /**
    * sorting
    * @var int
    * @validate NotEmpty
    */
    protected $sorting;
 
   /**
    * title
    * @var string
    *
    */
    protected $title;
 
   /**
    * subtitle
    * @var string
    *
    */
    protected $subtitle;
	
   /**
    * abstract
    * @var string
    *
    */
    protected $abstract;
	
   /**
    * crdate
    * @var int
    *
    */
    protected $crdate;
	
   /**
    * tstamp
    * @var int
    *
    */
    protected $tstamp;
	
   /**
    * starttime
    * @var int
    *
    */
    protected $starttime;
	
   /**
    * endtime
    * @var int
    *
    */
    protected $endtime;
	
   /**
    * author
    * @var \RH\Newspage\Domain\Model\BackendUser
    *
    */
    protected $author;
     
	/**
	* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference>
	*/
	protected $media;
     
	/**
	* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\RH\Newspage\Domain\Model\Tag>
	*/
	protected $tags;
     
	 
	/**
	 * Initializes all ObjectStorage properties.
	 *
	 * @return void
	 */
	protected function initStorageObjects() {
		/**
		 * Do not modify this method!
		 * It will be rewritten on each save in the extension builder
		 * You may modify the constructor of this class instead
		 */
		$this->media = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
		$this->tags = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
	}
	
	
    /**
    * Returns the pid
    *
    * @return int $pid
    */
    public function getPid() {
		return $this->pid;
    }
 
   /**
    * Returns the sorting
    *
    * @return int $sorting
    */
    public function getSorting() {
		return $this->sorting;
    }
      
   /**
    * Returns the title
    *
    * @return string $title
    */
    public function getTitle() {
		return $this->title;
    }

	/**
	 * Sets the title
	 *
	 * @param \string $title
	 * @return void
	 */
	public function setTitle($title) {
		$this->title = $title;
	}
 
   /**
    * Returns the subtitle
    *
    * @return string $subtitle
    */
    public function getSubtitle() {
		return $this->subtitle;
    }

	/**
	 * Sets the subtitle
	 *
	 * @param \string $subtitle
	 * @return void
	 */
	public function setSubtitle($subtitle) {
		$this->subtitle = $subtitle;
	}
 
   /**
    * Returns the abstract
    *
    * @return string $abstract
    */
    public function getAbstract() {
		return $this->abstract;
    }

	/**
	 * Sets the abstract
	 *
	 * @param \string $abstract
	 * @return void
	 */
	public function setAbstract($abstract) {
		$this->abstract = $abstract;
	}
	
   /**
    * Returns the crdate
    *
    * @return int $crdate
    */
    public function getCrdate() {
		return $this->crdate;
    }

	/**
	 * Sets the crdate
	 *
	 * @param \int $crdate
	 * @return void
	 */
	public function setCrdate($crdate) {
		$this->crdate = $crdate;
	}
	
   /**
    * Returns the starttime
    *
    * @return int $starttime
    */
    public function getStarttime() {
		return $this->starttime;
    }

	/**
	 * Sets the starttime
	 *
	 * @param \int $starttime
	 * @return void
	 */
	public function setStarttime($starttime) {
		$this->starttime = $starttime;
	}
	
   /**
    * Returns the endtime
    *
    * @return int $endtime
    */
    public function getEndtime() {
		return $this->endtime;
    }

	/**
	 * Sets the endtime
	 *
	 * @param \int $endtime
	 * @return void
	 */
	public function setEndtime($endtime) {
		$this->endtime = $endtime;
	}

	/**
	 * Returns the media
	 *
	 * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage
	 */
	public function getMedia() {
		return $this->media;
	}

	/**
	 * Sets the media
	 *
	 * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage
	 * @return void
	 */
	public function setMedia(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $media) {
		$this->media = $media;
	}

	/**
	 * Returns the tags
	 *
	 * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage
	 */
	public function getTags() {
		return $this->tags;
	}

	/**
	 * Sets the tags
	 *
	 * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage
	 * @return void
	 */
	public function setTags(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $tags) {
		$this->tags = $tags;
	}
	
	/**
	 * Returns the author
	 *
	 * @return \RH\Newspage\Domain\Model\BackendUser
	 */
	public function getAuthor() {
		return $this->author;
	}

	/**
	 * Sets the author
	 *
	 * @param \RH\Newspage\Domain\Model\BackendUser
	 * @return void
	 */
	public function setAuthor(\RH\Newspage\Domain\Model\BackendUser $author) {
		$this->author = $author;
	}
	
}
?>